package com.ssy.lingxi.member.merchant.model.vo.basic.response;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * 角色权限，以树形菜单的形式返回
 * @author 万宁
 * @version 2.0.0
 * @date 2020-06-29
 */
public class AuthTreeMenuVO implements Serializable {
    private static final long serialVersionUID = 6515222919297286080L;

    public AuthTreeMenuVO() {}

    public AuthTreeMenuVO(Long id, String title, List<AuthTreeMenuVO> children) {
        this.id = id;
        this.title = title;
        this.children = children == null ? new ArrayList<>() : children;
    }

    /**
     * 权限的id
     */
    private Long id;

    /**
     * 权限名称
     */
    private String title;

    /**
     * 子节点
     */
    private List<AuthTreeMenuVO> children;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public List<AuthTreeMenuVO> getChildren() {
        return children;
    }

    public void setChildren(List<AuthTreeMenuVO> children) {
        this.children = children;
    }
}
